<?php
/**
 *	KLF Framework
 *
 *	Written by Kristian Oye <kristianoye@gmail.com> on Nov 19, 2011
 *	Copyright (C) 2010-2011
 */
namespace KLF\System\Errors
{
	use KLF\KCore;
	
	/**
	 *  Class KFeatureException
	 *
	 *  This error is thrown when the framework attempts to access
	 *  a feature that is not enabled.
	 *
	 *  @package KLF\System\Errors
	 *  @access public
	 *  @author Kristian Oye <kristianoye@gmail.com>
	 *  @since 0.1
	 */
	class KFeatureException extends KException
	{
		public function __construct($featureName)
		{
			parent::__construct(
				KCore::FS("Feature {featureName} is not enabled.", 
				array('featureName' => $featureName)));
		}
	}
}